CREATE TABLE [dbo].[TRTIOP_OPCI]
(
[CO_EMPR] [dbo].[TD_VC_002] NOT NULL,
[CO_FORM] [dbo].[TD_VC_020] NOT NULL,
[CO_TIPO_OPER] [dbo].[TD_VC_003] NOT NULL,
[CO_USUA_CREA] [dbo].[TD_VC_008_USUA] NOT NULL CONSTRAINT [DF__TRTIOP_OP__CO_US__0FC23DAB] DEFAULT (suser_sname()),
[FE_USUA_CREA] [dbo].[TD_DT_001_SIST] NOT NULL CONSTRAINT [DF__TRTIOP_OP__FE_US__10B661E4] DEFAULT (getdate()),
[CO_USUA_MODI] [dbo].[TD_VC_008_USUA] NOT NULL CONSTRAINT [DF__TRTIOP_OP__CO_US__11AA861D] DEFAULT (suser_sname()),
[FE_USUA_MODI] [dbo].[TD_DT_001_SIST] NOT NULL CONSTRAINT [DF__TRTIOP_OP__FE_US__129EAA56] DEFAULT (getdate())
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[TRTIOP_OPCI] ADD CONSTRAINT [PK__TRTIOP_O__3079AD5625876198] PRIMARY KEY CLUSTERED  ([CO_EMPR], [CO_FORM], [CO_TIPO_OPER]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[TRTIOP_OPCI] ADD CONSTRAINT [FK__TRTIOP_OPCI__269B8162] FOREIGN KEY ([CO_EMPR], [CO_TIPO_OPER]) REFERENCES [dbo].[TTTIPO_OPER] ([CO_EMPR], [CO_TIPO_OPER])
GO
